﻿using Basic.FlowModel.DB;
using Basic.FlowRemoteModel;

namespace Basic.FlowModel.AuditLogItem
{
    public class AuditItemResult
    {
        public long Id
        {
            get;
            set;
        }
        public long LogId
        {
            get;
            set;
        }
        public long FlowId
        {
            get;
            set;
        }
        public FlowNodeType NodeType
        {
            get;
            set;
        }
        public long BatchNo
        {
            get;
            set;
        }
        public long NodeId { get; set; }

        /// <summary>
        /// 流程项最终审核状态
        /// </summary>
        public FlowAuditItemStatus Status { get; set; }

        /// <summary>
        /// 子流程审核状态
        /// </summary>
        public FlowSubAuditStatus SubFlowState { get; set; }

        /// <summary>
        /// 用户审核状态
        /// </summary>
        public FlowAuditItemStatus AuditState { get; set; }

        public string AuditOpinion { get; set; }

        public long? BackNodeId { get; set; }

        /// <summary>
        /// 新增的授权Log
        /// </summary>
        public DBFlowAuditItemLog[] Logs { get; set; }
        /// <summary>
        /// 作废了的审批项
        /// </summary>
        public long[] ToVoidId { get; set; }
    }
}
